let channelId = getQuery("id")


function ret() {
    location.href="/post.html?id="+channelId;
}

function add() {
    axios.get("/post/add",{
        params:{
            theme:$("title").value,
            content:$("content").value,
            channelId:channelId
        }
    }).then(resp=>{
        if (resp.data=="ok"){
            ret()
        }
    })
}